<template>
  <el-switch v-model="globalStore.isDark" inline-prompt :active-icon="Sunny" :inactive-icon="Moon" @change="toggleDark" />
</template>

<script setup>
import { useAppStore } from "@/stores/modules/desktop";
import { Sunny, Moon } from "@element-plus/icons-vue";

const isDark = useDark()
const toggleDark = useToggle(isDark)
const globalStore = useAppStore();
</script>
